// import MyPromiseTS from "./MyPromiseTS";

let MyPromiseTS = require("MyPromiseTS");

let string = "";
let promise = new MyPromiseTS((resolve, reject) => {
  console.log("new MyPromiseTS resolve()");
  resolve("hello");
});
console.log("定义promis then() 的回调函数");

promise.then((res) => {
  console.log("执行 promis then() 的回调函数");
});